import request from '@/utils/request'

const {
    get: $get,
    post: $post,
    delete: $delete,
    download: $download
} = request

// 查询监测设备信息全部
export const alarmDeviceList = data => {
    return $get('/alarm/alarmDevice/list', data)
}

// 查询监测设备信息列表
export const alarmDevicePage = data => {
    return $get('/alarm/alarmDevice/page', data)
}

// 新增监测设备信息
export const alarmDeviceAdd = data => {
    return $post('/alarm/alarmDevice/add', data)
}

// 查询监测设备信息详情
export const alarmDeviceDetail = id => {
    return $get('/alarm/alarmDevice/detail/'+ id)
}

// 更新监测设备信息
export const alarmDeviceUpdate = data => {
    return $post('/alarm/alarmDevice/update', data)
}

// 删除监测设备信息
export const alarmDeviceDelete = id => {
    return $post('/alarm/alarmDevice/delete/'+ id)
}

// 导出监测设备信息
export const alarmDeviceExport = (data,fileName) => {
    return $download('/alarm/alarmDevice/export',data, fileName)
}

export const queryDeviceItem =data=>{
  return $get('/alarm/alarmDevice/queryDeviceItem', data)
}
